package com.mdd.admin.validate;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import javax.validation.constraints.*;
import com.mdd.common.validator.annotation.IDMust;

/**
 * 申报条件参数
 * @author LikeAdmin
 */
@Data
@ApiModel("申报条件更新参数")
public class DeclarationUpdateValidate implements Serializable {

    private static final long serialVersionUID = 1L;

    @IDMust(message = "id参数必传且需大于0")
    @ApiModelProperty(value = "主键ID")
    private Integer id;

    @NotNull(message = "modifier参数缺失")
    @ApiModelProperty(value = "修改人")
    private String modifier;

    @NotNull(message = "creator参数缺失")
    @ApiModelProperty(value = "创建人")
    private String creator;

    @NotNull(message = "code参数缺失")
    @ApiModelProperty(value = "编号")
    private String code;

    @NotNull(message = "acceptancerequirments参数缺失")
    @ApiModelProperty(value = "申报条件")
    private String acceptancerequirments;

    @NotNull(message = "typeId参数缺失")
    @ApiModelProperty(value = "申报类型编号")
    private Integer typeId;

    @NotNull(message="symbol参数缺失")
    @ApiModelProperty(value = "条件符号")
    private String symbol;

    @NotNull(message = "andsql参数缺失")
    @ApiModelProperty(value = "条件sql")
    private String andsql;

    @NotNull(message = "andsqlName参数缺失")
    @ApiModelProperty(value = "完整条件sql中文")
    private String andsqlName;
}
